-- & 是错的
function isNumber(e)
    return 0xf and  e;
end
function isNumber(e)
    return 0xf and e==0x02
end
function isString(e)
    return 0xf and e == 0x03
end
function isBoolean(e)
    return 0xf and e == 0x01
end
function isTrimNumber(e)
    return 0xfff and e == 0x102
end
function isFloatNumber(e)
    return 0xfff and e == 0x202
end
function isSingle(e)
    return 0xf0000 and e == SINGLE
end
function isComplex(e)
    return 0xf0000 and e == COMPLEX
end

--if type(variable) == "table" then
--    -- 处理表类型的变量
--end

--function fillJo(f,jo,e)
--    --print(type(f))
--    --print(type(jo))
--    --print(type(e))
--    --userdata
--    --userdata
--    --string
--
--    jo:put(f:getKey(),e)
--    jo:put("fuc",isComplex)
--end






function fillJo(f,jo,v,...)
    local arg = {...}
    local e= v
    if #arg>0 then
        --print(string.format("arg1=%s", tostring(arg[1])))
        -- bad argument: userdata expected, got number  v 必须是java类型
        print(type(v))
        --print(string.format("arg1=%s", tostring(arg[1])))
        print(arg[1]:get(v))
        e = arg[1]:get(tostring(v)) -- 不转string 拿到是空
    end
    jo:put(f:getKey(),e)

end

function readJo(f,jo)
    return jo:get(f:getKey())
end

function testDao(dao)
   return dao:selectByPrimaryKey(1)
end

function pirntJavaClas(...)
    local arg = {...}
    for i, v in ipairs(arg) do
        print(string.format(" %s %s",i, type(v)))
    end
end